<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ingres.resources.html">资源类型</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="ingres.examples.html">范例</a></div>
 <div class="up"><a href="book.ingres.html">Ingres</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="ingres.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <dl>

  
   <dt id="constant.ingres-assoc">
    <strong><code>INGRES_ASSOC</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
      Columns are returned into the array having the fieldname as the array
      index. Used with <span class="function"><a href="function.ingres-fetch-array.html" class="function">ingres_fetch_array()</a></span>.
    </span>
   </dd>

  
  
   <dt id="constant.ingres-num">
    <strong><code>INGRES_NUM</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
      Columns are returned into the array having a numerical index to the
      fields. By default this index starts at 1, the first field in the result.
      To change this value, see <a href="ingres.configuration.html#ini.ingres.array-index-start" class="link">ingres.array_index_start</a>.
      Used with <span class="function"><a href="function.ingres-fetch-array.html" class="function">ingres_fetch_array()</a></span>.
    </span>
   </dd>

  
  
   <dt id="constant.ingres-both">
    <strong><code>INGRES_BOTH</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
      Columns are returned into the array having both a numerical index and
      the fieldname as the array index.  Used with 
      <span class="function"><a href="function.ingres-fetch-array.html" class="function">ingres_fetch_array()</a></span>.
    </span>
   </dd>

  
    
   <dt id="constant.ingres-ext-version">
    <strong><code>INGRES_EXT_VERSION</code></strong> 
    (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Specifies the version of the Ingres Extension. Available since version 1.2.0 of the PECL extension.
    </span>
   </dd>

  
  
   <dt id="constant.ingres-api-version">
    <strong><code>INGRES_API_VERSION</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Specifies the version of Ingres OpenAPI that the extension was built against. Available since version 1.2.0 of the PECL extension.
    </span>
   </dd>

  
  
   <dt id="constant.ingres-cursor-readonly">
    <strong><code>INGRES_CURSOR_READONLY</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
      Specifies that Ingres cursors should be opened in &quot;readonly&quot; mode.
      Available since version 1.2.0 of the PECL extension. Used with <a href="ingres.configuration.html#ini.ingres.cursor-mode" class="link">ingres.cursor_mode</a>.
    </span>
   </dd>

  
  
   <dt id="constant.ingres-cursor-update">
    <strong><code>INGRES_CURSOR_UPDATE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
      Specifies that Ingres cursors should be opened &quot;for update.&quot;
      Available since version 1.2.0 of the PECL extension. Used with <a href="ingres.configuration.html#ini.ingres.cursor-mode" class="link">ingres.cursor_mode</a>.
    </span>
   </dd>

  
  
   <dt id="constant.ingres-date-multinational">
    <strong><code>INGRES_DATE_MULTINATIONAL</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Equivalent to the II_DATE_FORMAT setting of MULTINATIONAL. Available
     since version 1.2.0 of the PECL extension. 
     Used with
     <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span>, <span class="function"><a href="function.ingres-pconnect.html" class="function">ingres_pconnect()</a></span>
     and <span class="function"><a href="function.ingres-set-environment.html" class="function">ingres_set_environment()</a></span>. See <a href="function.ingres-set-environment.html#function.ingres-set-environment.options" class="link">options</a>
     in <span class="function"><a href="function.ingres-set-environment.html" class="function">ingres_set_environment()</a></span>.
    </span>
   </dd>

  
  
   <dt id="constant.ingres-date-multinational4">
    <strong><code>INGRES_DATE_MULTINATIONAL4</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Equivalent to the II_DATE_FORMAT setting of MULTINATIONAL4. Available since version 1.2.0 of the PECL extension.
     Used with
     <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span>, <span class="function"><a href="function.ingres-pconnect.html" class="function">ingres_pconnect()</a></span>
     and <span class="function"><a href="function.ingres-set-environment.html" class="function">ingres_set_environment()</a></span>. See <a href="function.ingres-set-environment.html#function.ingres-set-environment.options" class="link">options</a>
     in <span class="function"><a href="function.ingres-set-environment.html" class="function">ingres_set_environment()</a></span>.
    </span>
   </dd>

  
  
   <dt id="constant.ingres-date-finnish">
    <strong><code>INGRES_DATE_FINNISH</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Equivalent to the II_DATE_FORMAT setting of FINNISH. Available since version 1.2.0 of the PECL extension.
     Used with
     <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span>, <span class="function"><a href="function.ingres-pconnect.html" class="function">ingres_pconnect()</a></span>
     and <span class="function"><a href="function.ingres-set-environment.html" class="function">ingres_set_environment()</a></span>. See <a href="function.ingres-set-environment.html#function.ingres-set-environment.options" class="link">options</a>
     in <span class="function"><a href="function.ingres-set-environment.html" class="function">ingres_set_environment()</a></span>.
    </span>
   </dd>

  
  
   <dt id="constant.ingres-date-iso">
    <strong><code>INGRES_DATE_ISO</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Equivalent to the II_DATE_FORMAT setting of ISO. Available since version 1.2.0 of the PECL extension.
     Used with
     <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span>, <span class="function"><a href="function.ingres-pconnect.html" class="function">ingres_pconnect()</a></span>
     and <span class="function"><a href="function.ingres-set-environment.html" class="function">ingres_set_environment()</a></span>. See <a href="function.ingres-set-environment.html#function.ingres-set-environment.options" class="link">options</a>
     in <span class="function"><a href="function.ingres-set-environment.html" class="function">ingres_set_environment()</a></span>.
    </span>
   </dd>

  
  
   <dt id="constant.ingres-date-iso4">
    <strong><code>INGRES_DATE_ISO4</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Equivalent to the II_DATE_FORMAT setting of ISO4. Available since version 1.2.0 of the PECL extension.
     Used with
     <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span>, <span class="function"><a href="function.ingres-pconnect.html" class="function">ingres_pconnect()</a></span>
     and <span class="function"><a href="function.ingres-set-environment.html" class="function">ingres_set_environment()</a></span>. See <a href="function.ingres-set-environment.html#function.ingres-set-environment.options" class="link">options</a>
     in <span class="function"><a href="function.ingres-set-environment.html" class="function">ingres_set_environment()</a></span>.
    </span>
   </dd>

  
  
   <dt id="constant.ingres-date-german">
    <strong><code>INGRES_DATE_GERMAN</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Equivalent to the II_DATE_FORMAT setting of GERMAN. Available since version 1.2.0 of the PECL extension.
     Used with
     <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span>, <span class="function"><a href="function.ingres-pconnect.html" class="function">ingres_pconnect()</a></span>
     and <span class="function"><a href="function.ingres-set-environment.html" class="function">ingres_set_environment()</a></span>. See <a href="function.ingres-set-environment.html#function.ingres-set-environment.options" class="link">options</a>
     in <span class="function"><a href="function.ingres-set-environment.html" class="function">ingres_set_environment()</a></span>.
    </span>
   </dd>

  
  
   <dt id="constant.ingres-date-mdy">
    <strong><code>INGRES_DATE_MDY</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Equivalent to the II_DATE_FORMAT setting of MDY. Available since version 1.2.0 of the PECL extension.
     Used with
     <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span>, <span class="function"><a href="function.ingres-pconnect.html" class="function">ingres_pconnect()</a></span>
     and <span class="function"><a href="function.ingres-set-environment.html" class="function">ingres_set_environment()</a></span>. See <a href="function.ingres-set-environment.html#function.ingres-set-environment.options" class="link">options</a>
     in <span class="function"><a href="function.ingres-set-environment.html" class="function">ingres_set_environment()</a></span>.
    </span>
   </dd>

  
  
   <dt id="constant.ingres-date-dmy">
    <strong><code>INGRES_DATE_DMY</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Equivalent to the II_DATE_FORMAT setting of DMY. Available since version 1.2.0 of the PECL extension.
     Used with
     <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span>, <span class="function"><a href="function.ingres-pconnect.html" class="function">ingres_pconnect()</a></span>
     and <span class="function"><a href="function.ingres-set-environment.html" class="function">ingres_set_environment()</a></span>. See <a href="function.ingres-set-environment.html#function.ingres-set-environment.options" class="link">options</a>
     in <span class="function"><a href="function.ingres-set-environment.html" class="function">ingres_set_environment()</a></span>.
    </span>
   </dd>

  
  
   <dt id="constant.ingres-date-ymd">
    <strong><code>INGRES_DATE_YMD</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Equivalent to the II_DATE_FORMAT setting of YMD. Available since version 1.2.0 of the PECL extension.
     Used with
     <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span>, <span class="function"><a href="function.ingres-pconnect.html" class="function">ingres_pconnect()</a></span>
     and <span class="function"><a href="function.ingres-set-environment.html" class="function">ingres_set_environment()</a></span>. See <a href="function.ingres-set-environment.html#function.ingres-set-environment.options" class="link">options</a>
     in <span class="function"><a href="function.ingres-set-environment.html" class="function">ingres_set_environment()</a></span>.
    </span>
   </dd>

  
  
   <dt id="constant.ingres-money-leading">
    <strong><code>INGRES_MONEY_LEADING</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Specifies the currency character that should be placed at the start of a money
     value. Equivalent to setting II_MONEY_FORMAT to &quot;L:&quot;. Available since version 1.2.0 of the PECL extension.
     Used with
     <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span>, <span class="function"><a href="function.ingres-pconnect.html" class="function">ingres_pconnect()</a></span>
     and <span class="function"><a href="function.ingres-set-environment.html" class="function">ingres_set_environment()</a></span>. See <a href="function.ingres-set-environment.html#function.ingres-set-environment.options" class="link">options</a>
     in <span class="function"><a href="function.ingres-set-environment.html" class="function">ingres_set_environment()</a></span>.
    </span>
   </dd>

  
  
   <dt id="constant.ingres-money-trailing">
    <strong><code>INGRES_MONEY_TRAILING</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Specifies the currency character that should be placed at the end of a money
     value. Equivalent to setting II_MONEY_FORMAT to &quot;T:&quot;. Available since version 1.2.0 of the PECL extension.
     Used with
     <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span>, <span class="function"><a href="function.ingres-pconnect.html" class="function">ingres_pconnect()</a></span>
     and <span class="function"><a href="function.ingres-set-environment.html" class="function">ingres_set_environment()</a></span>. See <a href="function.ingres-set-environment.html#function.ingres-set-environment.options" class="link">options</a>
     in <span class="function"><a href="function.ingres-set-environment.html" class="function">ingres_set_environment()</a></span>.
    </span>
   </dd>

  
  
   <dt id="constant.ingres-structure-btree">
    <strong><code>INGRES_STRUCTURE_BTREE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Specifies the default table or index structure to BTREE when used in combination with the
     options or index_structure option when connecting. Available since version 1.4.0 of the PECL extension.
     Used with <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span> and
     <span class="function"><a href="function.ingres-pconnect.html" class="function">ingres_pconnect()</a></span>. See <a href="function.ingres-connect.html#function.ingres-connect.options" class="link">options</a>
     in <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span>.
    </span>
   </dd>

  
  
   <dt id="constant.ingres-structure-cbtree">
    <strong><code>INGRES_STRUCTURE_CBTREE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Specifies the default table or index structure to COMPRESSED BTREE when used in combination with the
     options or index_structure option when connecting. Available since version 1.4.0 of the PECL extension.
     Used with <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span> and
     <span class="function"><a href="function.ingres-pconnect.html" class="function">ingres_pconnect()</a></span>. See <a href="function.ingres-connect.html#function.ingres-connect.options" class="link">options</a>
     in <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span>.
    </span>
   </dd>

  
  
   <dt id="constant.ingres-structure-hash">
    <strong><code>INGRES_STRUCTURE_HASH</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Specifies the default table or index structure to HASH when used in combination with the
     options or index_structure option when connecting. Available since version 1.4.0 of the PECL extension.
     Used with <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span> and
     <span class="function"><a href="function.ingres-pconnect.html" class="function">ingres_pconnect()</a></span>. See <a href="function.ingres-connect.html#function.ingres-connect.options" class="link">options</a>
     in <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span>.
    </span>
   </dd>

  
  
   <dt id="constant.ingres-structure-chash">
    <strong><code>INGRES_STRUCTURE_CHASH</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Specifies the default table or index structure to COMPRESSED HASH when used in combination with the
     options or index_structure option when connecting. Available since version 1.4.0 of the PECL extension.
     Used with <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span> and
     <span class="function"><a href="function.ingres-pconnect.html" class="function">ingres_pconnect()</a></span>. See <a href="function.ingres-connect.html#function.ingres-connect.options" class="link">options</a>
     in <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span>.
    </span>
   </dd>

  
  
   <dt id="constant.ingres-structure-heap">
    <strong><code>INGRES_STRUCTURE_HEAP</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Specifies the default table structure to HEAP when used in combination with the
     options option when connecting. Available since version 1.4.0 of the PECL extension.
     Used with <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span> and
     <span class="function"><a href="function.ingres-pconnect.html" class="function">ingres_pconnect()</a></span>. See <a href="function.ingres-connect.html#function.ingres-connect.options" class="link">options</a>
     in <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span>.
    </span>
   </dd>

  
  
   <dt id="constant.ingres-structure-cheap">
    <strong><code>INGRES_STRUCTURE_CHEAP</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Specifies the default table structure to COMPRESSED HEAP when used in combination with the
     options option when connecting. Available since version 1.4.0 of the PECL extension.
     Used with <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span> and
     <span class="function"><a href="function.ingres-pconnect.html" class="function">ingres_pconnect()</a></span>. See <a href="function.ingres-connect.html#function.ingres-connect.options" class="link">options</a>
     in <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span>.
    </span>
   </dd>

  
  
   <dt id="constant.ingres-structure-isam">
    <strong><code>INGRES_STRUCTURE_ISAM</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Specifies the default table or index structure to ISAM when used in combination with the
     options or index_structure option when connecting. Available since version 1.4.0 of the PECL extension.
     Used with <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span> and
     <span class="function"><a href="function.ingres-pconnect.html" class="function">ingres_pconnect()</a></span>. See <a href="function.ingres-connect.html#function.ingres-connect.options" class="link">options</a>
     in <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span>.
    </span>
   </dd>

  
  
   <dt id="constant.ingres-structure-cisam">
    <strong><code>INGRES_STRUCTURE_CISAM</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Specifies the default table or index structure to COMPRESSED ISAM when used in combination with the
     options or index_structure option when connecting. Available since version 1.4.0 of the PECL extension.
     Used with <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span> and
     <span class="function"><a href="function.ingres-pconnect.html" class="function">ingres_pconnect()</a></span>. See <a href="function.ingres-connect.html#function.ingres-connect.options" class="link">options</a>
     in <span class="function"><a href="function.ingres-connect.html" class="function">ingres_connect()</a></span>.
    </span>
   </dd>

  
 </dl>

</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ingres.resources.html">资源类型</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="ingres.examples.html">范例</a></div>
 <div class="up"><a href="book.ingres.html">Ingres</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
